home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / m68k / 54 < prev    next >
Encoding:
Text File  |  1996-08-05  |  2.8 KB  |  73 lines

  1. Newsgroups: comp.sys.m68k
  2. Path: in1.uu.net!tron!usenet
  3. From: gibson.w.e@wec.com (White Gibson)
  4. Subject: Re: s19 format files ????
  5. Sender: usenet@tron.bwi.wec.com (USEnet News Poster)
  6. Message-ID: <DKz1ts.71r@tron.bwi.wec.com>
  7. Date: Wed, 10 Jan 1996 15:32:16 GMT
  8. X-Nntp-Posting-Host: mbsh28.bwi.wec.com
  9. References: <4cti4h$qeg@sunsic.si.univ-compiegne.fr>
  10. Mime-Version: 1.0
  11. Organization: Westinghouse Electric Corp.
  12. X-Newsreader: WinVN 0.99.2
  13.  
  14. In article <4cti4h$qeg@sunsic.si.univ-compiegne.fr>, 
  15. capi@hds.univ-compiegne.fr says...
  16. >
  17. > hello everybody
  18. >
  19. >i'm searching informations about the s19 motorola format files.
  20. >what are the signification of the first and last data 
  21. >where can i get such information
  22. >i want to convert s19 files to machine code only
  23. >who could help me
  24. >many thanks for your reply
  25. >
  26.  
  27. I have seen the Motorola S-Record format documented many places, but here is 
  28. a short discription. The .S19 extension means that the file is composed of 
  29. "S1" and "S9" records. There may also be "S0" records, but these are just 
  30. comment lines and can probably be ignored for your purposes. 
  31.  
  32. The general S-Record is as follows:
  33.  
  34.   S110AAAADDDDDDDDDDDDDDDDDDDDDDDDDDCC
  35.    |\/\__/\________________________/\/
  36.    | \  \              \             \_ Checksum for the record all bytes
  37.    |  \  \              \               for the S-Record Count byte through
  38.    |   \  \              \              checksum should add up to XXFFH.
  39.    |    \  \              \
  40.    |     \  \              \_____  Binary data in ASCII Hexidecimal format
  41.    |      \  \
  42.    |       \  \________  Address of record in ASCII Hexidecimal format. May
  43.    |        \            be 4, 6, or 8 ASCII characters depending on record
  44.    |         \           type see below. Address of first byte in the data
  45.    |          \          block or jump address for "S7", "S8", or "S9" 
  46.    |           \         records
  47.    |            \
  48.    |             \______ Count Byte the number of bytes(two ASCII characters
  49.    |                     each) remaining in the record (includes checksum)
  50.    |
  51.    
  52.    Type indicator types are as follows:
  53.  
  54.     0 - comment record 
  55.     1 - program data record with 2-byte (4-character) address field
  56.     2 - program data record with 3-byte (6-character) address field
  57.     3 - program data record with 4-byte (8-character) address field
  58.     7 - jump record with 4-byte address field
  59.     8 - jump record with 3-byte address field
  60.     9 - jump record with 2-byte address field
  61.  
  62. Jump records are used to indicate the start address of the code being 
  63. downloaded. Typically the load image ends with one which starts the target 
  64. processor executing the code just downloaded.
  65.  
  66. I hope this helps
  67.  
  68. Good Luck ...
  69.  
  70. White Gibson       | The opinions expressed in this article are those of
  71. gibson.w.e@wec.com | the author, for what that's worth.
  72.  
  73.